<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <table id="function_moduledg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'模块名称',title:'模块名称',width:15,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'文件名',title:'模块路径',width:20,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'父级ID',title:'父级ID',width: 20,editor:{type:'combobox',options:{
                    valueField:'ID',
                    textField:'模块名称',
                    method:'get',
                    url: '/sysAdmin/function_module/parentMenu',
                    editable:false
                }}"></th>
                <th data-options="field:'顺序',title:'顺序',editor:{type:'numberbox',options:{required:true}}"></th>
                <th data-options="field:'图标',title:'图标',width:10,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'身份IDS',title:'身份IDS',width: 20,editor:{type:'combobox',options:{
                    valueField:'ID',
                    textField:'POSITION',
                    groupField:'DEPART',
                    method:'get',
                    url: '/compent/Util/organizeDepart',
                    multiple:true,
                    editable:false
                }},formatter(value,row,index) {
                    return '<span class=\'note\' title=\''+row.身份+'\'>'+ row.身份 + '</span>';
                }"></th>
            </tr>
        </thead>
    </table>
    <script type="text/javascript">
        $(function(){
            var url = "/sysAdmin/function_module";
            initDatagridAdmin("function_module", url, 1, 1, 1, 1);
        })
    </script>

</body>
</html>